import { IAppEvent, EventHandler, IValid } from "../interfaces";


export class AppEvent implements IAppEvent {
    topic: string;
    handler: EventHandler;
    target: IValid;
    isBlock: boolean
    constructor(topic: string, handler: EventHandler, target: IValid, isBlock?: boolean) {
        this.topic = topic;
        this.handler = handler;
        this.target = target;
        this.isBlock = isBlock;
    }
}